package com.demo.mybatis01.entity;

import org.apache.ibatis.type.Alias;

import java.util.List;

@Alias("dept")
public class Department {

    private Integer id;
    private String deptName;
    private List<Employee> emps;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public List<Employee> getEmps() {
        return emps;
    }

    public void setEmps(List<Employee> emps) {
        this.emps = emps;
    }

    @Override
    public String toString() {
        return "Department{" +
            "id=" + id +
            ", deptName='" + deptName + '\'' +
            '}';
    }
}
